<?php 
function smarty_function_addslashes($params, &$smarty) {
	return addslashes(array_pop($params));
}

?>